<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script language="JavaScript" src="js/prototype.js"></script>
<script language="javascript">
function uploadBegin(){
	theFeats = "height=200,width=320,location=yes,menubar=yes,resizable=no,scrollbars=no,status=no,toolbar=yes";
	var strAppVersion = navigator.appVersion;
	if ($("file1").value != "")
	{
	    if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4)
	    {	
			winstyle = "dialogWidth=320px; dialogHeight:230px; center:yes";
			window.showModelessDialog('processDialog.jsp',window,winstyle);
	    }
	}
}
</script>

</head>
<body>
<form id="uploadForm" action="uploadAction.jsp" method="post" enctype="multipart/form-data" onsubmit="uploadBegin();">
<input id="file1" type="file" name="fileName">
<input id="file2" type="file" name="fileName2">
<input type="text" name="param">
<input type="submit" value="upload"><input type="button" value="dialog" onclick="uploadBegin()">
</form>
</body>
</html>